-
Notifications
You must be signed in to change notification settings - Fork 1k
RANGER-5391: Migrate from Apache Commons Lang 2.6 to Commons Lang 3.19.0 #724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@mneethiraj can you help to review the pr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates Apache Ranger from the vulnerable Commons Lang 2.6 library to Commons Lang 3.19.0, addressing CVE-2025-48924. The migration involves updating all import statements from org.apache.commons.lang.* to org.apache.commons.lang3.* across the codebase and updating dependency declarations in POM files.
Key changes:
- Updated Commons Lang 3 version from 3.3.2 to 3.19.0 in the root POM
- Replaced all imports across 100+ Java files from
org.apache.commons.langtoorg.apache.commons.lang3 - Removed commons-lang:2.6 dependency declarations and added commons-lang3:3.19.0 where needed
Reviewed Changes
Copilot reviewed 132 out of 132 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Updated commons-lang3 version from 3.3.2 to 3.19.0 |
| agents-common/pom.xml | Removed commons-lang 2.6 dependency declaration |
| agents-audit/core/pom.xml | Replaced commons-lang 2.6 with commons-lang3 3.19.0 dependency |
| storm-agent/src/main/java/**/*.java | Updated StringUtils imports to commons-lang3 |
| ranger-examples/**/*.java | Updated StringUtils imports to commons-lang3 |
| agents-common/src/**/*.java | Updated StringUtils, ArrayUtils, ObjectUtils, and Validate imports to commons-lang3 |
| agents-audit/src/**/*.java | Updated StringUtils and ArrayUtils imports to commons-lang3 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@vishnukribm - thank you for the patch to replace use of commons-lang library with commons-lang3. With this patch, commons-lang library is no more needed, hence can be removed from packaging as well - in files under distro/src/main/assembly. Can you please review and update? |
|
Thank you for the patch, I see imports for |
|
@mneethiraj @kumaab I’ve made the changes based on your comments. Please review them. |
...ool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/LdapConfigCheckMain.java
Outdated
Show resolved
Hide resolved
...figchecktool/ldapconfigcheck/src/main/java/org/apache/ranger/ldapconfigcheck/LdapConfig.java
Outdated
Show resolved
Hide resolved
mneethiraj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @vishnukribm for the patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
|
@mneethiraj @kumaab who can help to merge this? |
fix for https://issues.apache.org/jira/browse/RANGER-5391
This PR addresses CVE-2025-48924
by migrating Apache Ranger from Apache Commons Lang 2.6 to Commons Lang 3.19.0.
The old commons-lang:2.6 dependency is affected by CVE-2025-48924 and is no longer maintained.
commons-lang3 is a separate and actively maintained library under the package org.apache.commons.lang3.
Changes include: